#region Using directives
using System;
using System.Data;
using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{
	//=========MSchedule  ============================
	[System.ComponentModel.DesignerCategory("Code")]
    public class MScheduleDEL : DataSet, IDataEntity
	{
		//=========mSchedule ============================
		public const string TABLENAME_MSCHEDULE="mSchedule";
        public const string RECID = "RecId";
        public const string USERNAME = "UserName";
        public const string FROMDATE = "FromDate";
        public const string TODATE = "ToDate";
        public const string FROMTIME = "FromTime";
        public const string TOTIME = "ToTime";
        public const string TOPIC = "Topic";
        public const string PLACE = "Place";
        public const string CONTENT = "Content";
        public const string CUSTNO = "CustNo";
        public const string ISALLDAY = "IsAllDay";
        public const string MILLAGE = "Millage";
		public const string RECSTAMP = "RecStamp";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

        public MScheduleDEL()
		{
			//Create mSchedule structure
			CreatemScheduleStructure();

		}

		//=========mSchedule============================
		private void CreatemScheduleStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MSCHEDULE);
			DCC=table.Columns;

			DC = new DataColumn(RECID, typeof(System.Int32));
			DCC.Add(DC);

			DC = new DataColumn(USERNAME, typeof(System.String));
            DC.MaxLength = 20;
            DC.DefaultValue = "";
			DCC.Add(DC);

            DC = new DataColumn(FROMDATE, typeof(System.DateTime));
			DCC.Add(DC);

            DC = new DataColumn(TODATE, typeof(System.DateTime));
            DCC.Add(DC);

            DC = new DataColumn(FROMTIME, typeof(System.String));
            DC.MaxLength = 5;
            DC.DefaultValue = "00:00";
            DCC.Add(DC);

            DC = new DataColumn(TOTIME, typeof(System.String));
            DC.MaxLength = 5;
            DC.DefaultValue = "00:00";
            DCC.Add(DC);

            DC = new DataColumn(TOPIC, typeof(System.String));
            DC.MaxLength = 300;
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(PLACE, typeof(System.String));
            DC.MaxLength = 300;
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(CONTENT, typeof(System.String));
            DC.MaxLength = 2000;
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(CUSTNO, typeof(System.String));
            DC.MaxLength = 8;
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(ISALLDAY, typeof(System.Boolean));
            DC.DefaultValue = false;
            DCC.Add(DC);

            DC = new DataColumn(MILLAGE, typeof(System.Decimal));
            DC.DefaultValue = 0;
            DCC.Add(DC);

			DC = new DataColumn(RECSTAMP,typeof(System.Byte[]));
			DCC.Add(DC);

			this.Tables.Add (table);
		}

	}
}